﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
</head>
<body>
    <script type="text/javascript">
        var x = 5, y = 3;
        var hyp = Math.sqrt(Math.pow(x - 1, 2) + Math.pow(y - 1, 2));
        var outOfRectangle = !((x >= -1) && (x <= 5) && (y <= 1) && (y >= -1));
        var inCircle = hyp <= 3;
        var check = outOfRectangle && inCircle;
        document.writeln(check ? "The point is within the circle and outside the rectangle." : "The point does not meet the two condtions.");
    </script>
</body>
</html>
